
<nav class="navbar navbar-default subnav ">

    <div class="container">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Spiderkit 监控</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class="active">
                <a href="group_summary?zkhost=${zkhost}">概况</a>
                </li>
                <li>
                <a href="group_detail?zkhost=${zkhost}">详情</a>
                </li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
            <li>
	            <form action="group_summary" class="form" role="form">
					<input type="text" class="form-control" name="zkhost" id="zkhost" placeholder="Zookeeper Host">
					<button type="submit" class="btn btn-default" style="display:none;"></button>
				</form>
			</li>
			</ul>
        </div>
    </div>
</nav>

<div class="group-pannel container">

    <div class="col-md-10" >
        <p>Zookeeper host : <c:out value="${zkhost}"/> 共<c:out value="${gsummary.getGroupList().size()}"/>个组 <c:out value="${gsummary.getNullGroupSize()}"/>个组可删除</p>
    </div>

    <p style="color:red" ng-show="{{summary_info.connect_failed}}">
	    Zookeeper 链接失败 !
    </p>

    <p style="color:red" ng-show="{{summary_info.getinfo_failed}}">
        信息获取失败 !
    </p>

    <table class="table table-hover">
        <thead>
            <tr align="center">
                <td>组名</td>
                <td>节点数</td>
                <td>已启动内核数</td>
                <td>正在加载页面数</td>
                <td></td>
            </tr>
        </thead>
        <tbody>
        <tr align="center" ng-repeat="g in summary_info.gsummary">
            <td>
                <div class="bs-callout bs-callout-warning bs-callout-main">
                    <h4><c:out value="${gitem.getGroupName()}"/></h4>
                </div>
            </td>
            <td>
                <div class="bs-callout bs-callout-sub">
                    <p><c:out value="${gitem.getNodeSize()}"/></p>
                </div>
            </td>
            <td>
                <div class="bs-callout bs-callout-sub">
                    <p><c:out value="${gitem.getCoreSize()}"/></p>
                </div>
            </td>
            <td>
                <div class="bs-callout bs-callout-sub">
                    <p><c:out value="${gitem.getTotalPageCount()}"/></p>
                </div>
            </td>
            <td>
                <div class="bs-callout bs-callout-sub">
                    <c:if test="${gitem.getNodeSize() == 0}">
                    <form aciton="group_summary"  role="form">
                        <input type="text" class="form-control hidden" name="gname" id="gname" value="${gitem.getGroupName()}">
                        <input type="text" class="form-control hidden" name="zkhost" id="zkhost" value="${zkhost}">
                        <button type="submit" class="btn btn-default">删除</button>
                    </form>
                    </c:if>

                    <c:if test="${gitem.getNodeSize() != 0}">
                    <a type="submit" class="btn btn-primary" href="group_detail?zkhost=${zkhost}&gname=${gitem.getGroupName()}">查看</a>
                    </c:if>
                </div>
            </td>
        </tr>
        </tbody>
    </table>
</div>
    </div>


